package com.teamcenter.rac.massupdate.converters;

import org.eclipse.core.databinding.conversion.IConverter;

import com.teamcenter.rac.massupdate.model.UpdateJobModel;

public class OperationIndex2OperationTypeConverter
  implements IConverter
{
  public Object convert(Object paramObject)
  {
    if ((paramObject instanceof Integer)) {
      return UpdateJobModel.OperationType.ORDERRED_OP_TYPES[((Integer)paramObject).intValue()];
    }
    return UpdateJobModel.OperationType.NOT_SET;
  }
  
  public Object getFromType()
  {
    return Integer.class;
  }
  
  public Object getToType()
  {
    return UpdateJobModel.OperationType.class;
  }
}
